using System;
using System.Xml;
using System.Xml.Serialization;

namespace ClientTools.Client.Controls.Packager.PackageClasses
{
    public class Template
    {
      //  <Name>Master Template</Name>
      //<Alias>Master Template</Alias>
      //<Master></Master>
      //<Design>

        private string _alias;
        public string Alias
        {
            get { return _alias; }
            set { _alias = value; }
        }

        private string _name;
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _master;
        public string Master
        {
            get { return _master; }
            set { _master = value; }
        }

        private string _design;
        [XmlIgnore]
        public string Design
        {
            get { return _design; }
            set { _design = value; }
        }
	
        [XmlElement("Design")]
        public XmlCDataSection DesignCdata
        {
            get
            {
                XmlDataDocument doc = new XmlDataDocument();
                XmlCDataSection cd = doc.CreateCDataSection(_design);
                return cd;
            }
            set { _design = value.Value; }
        }
    }
}
